{extends file="public_menu.tpl"}
{block name="title"}{$title}{/block}
{block name="head" append}
    <script type="text/javascript" src="js/main.js"></script>
    <link href="style/main.css" type="text/css" rel="stylesheet" />
{/block}
{block name="body" append}
<div id="main_left">
    <form id="main_left_form" action="index.php?app=create_table" method="post">
        <span class="main_left_form_button">主题：<input type="text" name="main_left_title" value="" /></span>
        <span class="main_left_form_button"><input type="submit" name="main_left_sub" value="生成表单" /></span>
        <span style="display: none;color: red;"></span>
    </form>
</div>
<table id="customers">
    <tr>
        <th></th>
        <th>姓名</th>
        <th>性别</th>
        <th>手机</th>
        <th>身份证号</th>
        <th></th>
    </tr>
    <tr>
        <td><input class="all" type="checkbox" />全选</td>
        <td><a href="index.php?app=main&code=1"><img src="style/image/arrow_up.jpg" /></a>
        <a href="index.php?app=main&code=2"><img src="style/image/arrow_down.jpg" /></a></td>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
    </tr>
    {nocache}
    {foreach $member as $m_value}
    <tr id="member_{$m_value.member_id}">
        <td><input class="main_table_sel" type="checkbox" name="check[]" value="{$m_value.member_id}" /></td>
        <td><div data-id="{$m_value.member_id}">{$m_value.member_cname}</div></td>
        <td>{$m_value.member_sex}</td>
        <td>{$m_value.member_phone}</td>
        <td>{$m_value.member_personal_ID}</td>
        <td><a class="del" href="javascript:void(0)">删除</a>
            <a class="main_table_edit" href="javascript:void(0)">编辑</a></td>
    </tr>
    <tr class="main_table_form" style="text-align: left;">
        <td colspan="6" style="text-align: left;">
            <form action="" method="post">
                <ul>
                    <li><input type="hidden" name="id" value="{$m_value.member_id}" /></li>
                    <li>姓名：<input type="text" name="name" value="{$m_value.member_cname}"/></li>
                    <li>性别：{html_radios name='sex' options=$sex labels="" selected="{$m_value.member_sex}"}</li>
                    <li>年龄：<input type="number" name="age" value="{$m_value.member_age}" /></li>
                    <li>电话：<input type="tel" name="phone" value="{$m_value.member_phone}"/></li>
                    <li>身份证号：<input type="text" name="per_ID" value="{$m_value.member_personal_ID}"/></li>
                    <li><input type="submit" name="main_sub" value="修改" /></li>
                </ul>
            </form>
        </td>
    </tr>
    {/foreach}
    {/nocache}
    <tr>
        <td colspan="6" style="text-align:left;padding: 15px;">
            <div style="padding: 3px;">
                第<input type="text" name="main_team_num" style="width: 50px;" />组
                <input type="button" id="main_team_sub" name="main_team_sub" value="保存" />
                <span style="display: none;color: red;"></span>
            </div>
        </td>
    </tr>
</table>
        <div class="returnTop" title="嗖的就上去了！">
  <span class="s"></span>
  <span class="b"></span>
  返回顶部
</div>
{/block}